package com.itheima.manager;

import com.itheima.common.R;

import com.itheima.domain.OmsCompanyAddress;

import com.itheima.service.db.OmsCompanyAddressService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class OmsCompanyAddressManager {

    @DubboReference
    OmsCompanyAddressService icompanyAddressService;

    public R findCompanyAddress() {
        List<OmsCompanyAddress> omscompanyAddress = icompanyAddressService.findCompanyAddress();
        return R.success(omscompanyAddress);
    }


}
